<?php echo $left ?>
<script>
$( document ).ready(function() {
	$.ajaxSetup({
		cache: false
	});
	$( '.sidebar' ).simpleSidebar({
		settings: {
			opener: '#open-sb',
			wrapper: '.wrapper',
			animation: {
				duration:0,
				easing: 'easeOutQuint'
			}
		},
		sidebar: {
			align: 'left',
			width: 214,
			closingLinks: 'a',
		}
	});
});
</script>

<div class="clear"></div>
<div  class="w640" style="padding:0; background:none;">
<div class="zhmm" style="padding:0; min-height:960px; background-position:bottom;">
  <div class="xinx">
       <div class="left">公益账号：<?php echo $user['user_account'] ?> <br />会员等级：<?php echo $team_lv['title'] ?>；<?php echo $lv['title'] ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		   &nbsp;&nbsp我的积分：<em class="jyz"><i style="width:<?php echo $user['score']/($lv['score']-1)*96; ?>px;"></i></em><span><?php
								if($user['score']>700){
									echo $user['score'];
								}else{
									echo $user['score'] ;
									echo "/";
									echo $lv['score']-1;
								}
								?></span></div>
	   <div class="center">爱<em></em>基金池：<?php echo $aixinchi ?></div>
	   <div class="right">公益排单信息<br />公益币余额：<span class="red"><?php echo $user['public_money'] ?></span></div>
  
  </div>
  <div class="clear"></div>
  <div class="tass">
       <div class="leftt" onclick="location.href='offer_help'"><div class="shed"><h3><?php echo $user['jt_money'] ?></h3>
       公益静态钱包</div>
       </div>
	   <div class="rightt" onclick="location.href='accept_help'"><div class="dee"><h3><?php echo $user['tg_money'] ?></h3>
       公益推广钱包</div>
       </div>
  </div>
  <div class="clear"></div>
  <div class="newxx">
       <div class="lefts"><div class="hxs pl20">提供公益帮助信息</div>
	   <div class="tsww">
	       <table border="0" cellpadding="0" cellspacing="0">
		     <tr>
			   <td width="29%"  class="txtright">公益编号：</td>
			   <td width="71%"><?php echo $offer['bianhao']; ?></td>
			 </tr>
			 <tr>
			   <td class="txtright">参与者：</td>
			   <td ><?php echo $user['user_name'] ?></td>
			 </tr>
			 <tr>
			   <td class="txtright">数额：</td>
			   <td ><?php echo $offer['money'] ?></td>
			 </tr>
			 <tr>
			   <td class="txtright">日期：</td>
			   <td ><?php if($offer['create_time'] == '' || $offer['create_time'] == '0'){
					   echo "";
				   }else{
					   echo date('Y-m-d H:i:s',$offer['create_time']);
				   } ?></td>
			 </tr>
			 <tr>
			   <td class="txtright">状态：</td>
			   <td ><?php 
						if ($offer['status'] == '0'){
							echo "等待中";
						} elseif($offer['status'] == '1') {
							echo "已匹配";
						} elseif($offer['status'] == '12') {
							echo "已打款";
						} elseif($offer['status'] == '13') {
							echo "交易完成";
						}
					?></td>
			 </tr>
	     </table>
		 <?php 
			$day_num =  floor( (time() - $offer['create_time'])/86400);
			$day_num = $day_num < 6 ? $day_num : 6;
		 ?>
		 <p>当前排队日回报1%，已经排单<?=$day_num?>天获得<?=$offer['money']*$day_num/100?>回报</p>
	   </div>
	   </div>
	   <div class="rights"><div class="hxs pl10">接受公益帮助信息</div>
	   <div class="tswh" style="height:120px">
		<?php if(!empty($accept)): ?>
		<?php $v = array_pop($accept); ?>
			<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td width="29%"  class="txtright">公益编号：</td>
					<td width="71%"><?php echo $v['gy_bianhao'] ?></td>
				</tr>
				<tr>
					<td class="txtright">参与者：</td>
					<td ><?php echo $user['user_name'] ?></td>
				</tr>
				<tr>
					<td class="txtright">数额：</td>
					<td ><?php echo $v['money'] ?></td>
				</tr>
				<tr>
					<td class="txtright">日期：</td>
					<td ><?php if($v['create_time'] == '' || $v['create_time'] == '0'){
							echo "";
						}else{
							echo date('Y-m-d H:i:s',$v['create_time']);
						} ?></td>
				</tr>
				<tr>
					<td class="txtright">状态：</td>
					<td ><?php
						if ($v['status'] == '0'){
							echo "等待中";
						} elseif($v['status'] == '1') {
							echo "已匹配";
						} elseif($v['status'] == '12') {
							echo "已完成";
						}
						?></td>
				</tr>
			</table>
		 <?php endif; ?>
	   </div>
	   </div>
  </div>
  <div class="clear"></div>
  <div class="gypt mt20">
    <table width="100" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="4" style="border-bottom:0"><div class="hhs">平台公益公告</div></td>
	</tr>
   <tr>
    <th width="310">标题</th>
	<th width="149">摘要</th>
	<th width="83">时间</th>
	<th width="73">查看</th>
	</tr>
	<?php 
	foreach ($result as $rs){
	?>
	<tr>
	    <td><img src="<?=base_url()?>uploads/<?php echo $rs['picture']; ?>" class="gyptimg" /><div class="hewhs" style="text-align: center;"><?php echo $rs['title'];?></div></td>
		<td><?php echo $rs['content'];?></td>
		<td><?php echo date("Y-m-d",$rs['create_time']);?><br /><?php echo date("H:i:s",$rs['create_time']);?></td>
		<td class="chakan"><a href="articles/index?id=<?php echo $rs['id'];?>" class="chakan">查看</a></td>
	</tr>
	<?php }?>
</table>

</div>
</div>
</div>
<?php echo $foot; ?>